<template>
  <footer>
    <div class="limit">
      <div class="content">
        <div class="company">
          <h4>重庆合一科技有限公司</h4>
          <span>Chongqing unity of science and technology co., LTD</span>
        </div>
        <ul class="lists">
          <ListItem v-for="list in lists" :label="list.label"></ListItem>
        </ul>
      </div>
      <div class="QRcode">
        <img :src="code">
        <div class="code_label">
          微信扫一扫，沟通更方便
        </div>
      </div>
    </div>
  </footer>
</template>
<style lang="less">
  footer {
    padding: 40px 0;
    background: #267cc1;
    .limit {
      max-width: 1200px;
      min-height: 140px;
      margin: 0 auto;
    }
    .content {
      color: white;
      float: left;
      margin-left: 10%;
      .company {
        padding-bottom: 10px;
        h4 {
          padding: 0;
          margin: 0;
        }
      }
      .lists {
        margin: 10px 0 0 0;
        padding: 0;
      }
      .muListItem {
        border-bottom: 0;
        height: 25px;
      }
    }
    .QRcode {
      float: right;
      img {
        display: block;
        margin: 0 auto;
      }
      .code_label {
        margin-top: 10px;
        color: white;
        font-size: 18px;
        text-align: center;
      }
    }
  }

  @media screen and (max-width: 600px) {
    footer {
      .content {
        float: none;
        margin-bottom: 30px;
      }
      .QRcode {
        float: none;
      }
    }
  }

</style>
<script>
  import code from '../images/QRcode.jpg'
  import listItem from '../muka/mu-vue/List/ListItem'
  export default {
    name: 'footer',
    components: {
      'ListItem': listItem
    },
    data: () => {
      return {
        code: code,
        // 显示公司信息
        lists: [{
          label: '电话：13594398682'
        }, {
          label: 'QQ：2384905405'
        }, {
          label: '地址：重庆市南岸区亚太路玖玺国际6栋14-11'
        }]
      }
    }
  }

</script>
